<?php

namespace frontend\models\download;

use Yii;

/**
 * This is the model class for table "edu_user".
 *
 * @property integer $user_id
 * @property integer $user_num
 * @property string $user_email
 * @property string $user_phone
 * @property string $user_name
 * @property string $user_pwd
 * @property integer $user_status
 * @property integer $user_regtime
 * @property integer $user_lastlogin
 * @property string $user_regip
 * @property string $user_lastip
 * @property integer $user_updtime
 * @property integer $user_sex
 * @property string $user_sign
 * @property integer $user_virtual
 * @property integer $province_id
 * @property integer $city_id
 * @property integer $area_id
 * @property string $user_thumb
 * @property integer $user_qq
 * @property string $user_emid
 * @property string $user_openid
 * @property string $user_opentype
 */
class User extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'edu_user';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['user_num', 'user_status', 'user_regtime', 'user_lastlogin', 'user_updtime', 'user_sex', 'user_virtual', 'province_id', 'city_id', 'area_id', 'user_qq'], 'integer'],
            [['user_sign'], 'string'],
            [['user_email'], 'string', 'max' => 40],
            [['user_phone'], 'string', 'max' => 11],
            [['user_name'], 'string', 'max' => 18],
            [['user_pwd', 'user_emid'], 'string', 'max' => 32],
            [['user_regip', 'user_lastip'], 'string', 'max' => 15],
            [['user_thumb', 'user_opentype'], 'string', 'max' => 255],
            [['user_openid'], 'string', 'max' => 64]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'user_id' => 'User ID',
            'user_num' => 'User Num',
            'user_email' => 'User Email',
            'user_phone' => 'User Phone',
            'user_name' => 'User Name',
            'user_pwd' => 'User Pwd',
            'user_status' => 'User Status',
            'user_regtime' => 'User Regtime',
            'user_lastlogin' => 'User Lastlogin',
            'user_regip' => 'User Regip',
            'user_lastip' => 'User Lastip',
            'user_updtime' => 'User Updtime',
            'user_sex' => 'User Sex',
            'user_sign' => 'User Sign',
            'user_virtual' => 'User Virtual',
            'province_id' => 'Province ID',
            'city_id' => 'City ID',
            'area_id' => 'Area ID',
            'user_thumb' => 'User Thumb',
            'user_qq' => 'User Qq',
            'user_emid' => 'User Emid',
            'user_openid' => 'User Openid',
            'user_opentype' => 'User Opentype',
        ];
    }
}
